<template>
	<view class="login_bg">
		<view class="like_top">
			<view class="back">
				<view class="back_img" @click="set()"><image src="../../static/images/left.png" mode="widthFix"></image></view>
			</view>
			<p class="like">账号安全</p>
		</view>
		<view class="set">
			<view class="set_list"  @click="openDialog">
				<view class="set_list_left">绑定手机</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>
			<view class="set_list" @click="revise_pwd()">
				<view class="set_list_left">修改密码</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>
			<view class="set_list" @click="del_zhanghao()">
				<view class="set_list_left">注销账号</view>
				<view class="set_list_right"><image src="../../static/images/icon_me_next-1417b7e1.png" mode="widthFix"></image></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				 showPopup: false,
				  isChecked: false
			}
		},
	  methods: {
		  set(){
			  uni.navigateBack({
			  	delta:1
			  })
		  },
		  revise_pwd(){
		  	 uni.navigateTo({
		  		url:'/pages/revise_pwd/revise_pwd'
		  		})
		  },
		  del_zhanghao(){
			  uni.navigateTo({
			  	url:'/pages/del_zhanghao/del_zhanghao'
			  })
		  },
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  
		  handleSwitchChange(event) {
		        this.isChecked = event.detail.value;
		        // 这里可以执行你的逻辑，比如保存开关状态到服务器等
		        console.log('Switch is ' + (this.isChecked ? 'on' : 'off'));
		  			},
	    openDialog() {
	      uni.showModal({
	        title: '确定要更换绑定手机号码吗？',
	        content: '137****6737',
	        success: function (res) {
	          if (res.confirm) {
	            console.log('用户点击确定');
	          } else if (res.cancel) {
	            console.log('用户点击取消');
	          }
	        }
	      });
	    }
	  }
	}
</script>

<style>
@import "../../static/css/zhanghaoanquan.css";
</style>
